import React,{Component} from 'react';
import {BrowserRouter,Switch,Route} from 'react-router-dom';
import IndexPage from '../components/pages';
import VideoDetail from "../components/pages/detail"
// import Header from "../components/layout/header";
// import Footer from "../components/layout/footer";
// import Editor from "../components/layout/editor";
// import {ArticleDetail} from "../components/layout/article";
class Router extends Component {
    render() {
        return (
            <BrowserRouter>
            <Switch>
                <Route  path='/' exact component={IndexPage}/>
                <Route  path='/video/:video_id' exact component={VideoDetail}/>

                {/*<Route path='/subject' component={SubjectPage}/>*/}
                    {/*<Route path='/about' component={Editor}/>*/}
                {/*<Route path='/photo' component={PhotoPage}/>*/}
                {/*<Route path='/footer' component={Footer}/>*/}
                {/*    <Route path='/article' component={ArticlePage}/>*/}
                {/*<Route path='/md' component={Editor}/>*/}

            </Switch>
            </BrowserRouter>
        );
    }
}
export default Router;